﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWPF.FirstMVVM.Models
{
    public class FirstMVVMModel : INotifyPropertyChanged
    {
        public double Value1 { get; set; } = 123;

        public double Value2 { get; set; } = 456;

        public double _value3;

        public event PropertyChangedEventHandler PropertyChanged;

        public double Value3 
        {
            get { return _value3; }
            set
            {
                _value3 = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value3"));
            }
        }

    }
}
